

public class Test {
    public static void main1(String[] args) {
        Dog dog=new Dog("小黄","黄色");
        System.out.println(dog.color);
        System.out.println(dog.name);
    }

    public static void main2(String[] args) {
        Date date=new Date(2024,9,20);
        date.printDate();

        Date date2=new Date(2024,9,21);
        date2.printDate();

        Date date3=new Date(2024,9,22);
        date3.printDate();
        int x=30;
        int y=40;
        double z=Math.sqrt(Math.pow(x,2)+Math.pow(y,2));
        System.out.println(z);

    }

    public static void main (String[] args) {
        student student1=new student("zhangsan",10,"201401");
        //student.getClassName();
        System.out.println(student1);
        //student student2=new student("zhangsan",10,"201401");
      /* student1.className="1班";
        student.className="1班";
        student student2=new student("lisi",10,"201402","303");
        student1.show();
        System.out.println();
        student2.show();*/
    }

}
